package no.cicero.testframework.reporting.reports;

import no.cicero.testframework.reporting.ReportingTestCase;
import no.cicero.testframework.reporting.ReportingUseCase;

import java.io.IOException;

public class ProgressReport extends AbstractReport{

	@Override
	public void useCaseStarted(ReportingUseCase useCase) {
        System.out.println(useCase.getUseCaseName() + "...");
	}

	@Override
	public void useCaseFailed(ReportingUseCase useCase, Exception ex) {
        ex.printStackTrace();
	}

	@Override
	public void testCaseStarted(ReportingTestCase testCase) throws IOException {
		System.out.println("      " + testCase.getTestCaseName());
	}

	@Override
	public void testCaseFailed(ReportingTestCase testCase, Exception ex) {
		ex.printStackTrace();
	}
}
